<template>
    <div class="popover-con">
        <div class="top">
            <div></div>
        </div>
        <div class="btn">
            <span>111</span>
        </div>
        <div class="top">
            <div></div>
        </div>
    </div>
</template>

<script>
export default {
    name: "YorhaPopover"
}
</script>

<script setup>
let props = defineProps(['x','y'])
</script>

<style lang="less" scoped>
@import "../style";
.popover-con {
    width: 150px;
    height: auto;
    background: @white;
    &>.top {
        width: 100%;
        height: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        &>div {
            width: 130px;
            height: 2px;
            background: @darkYellow;
        }
    }
    &>.btn {
        &:hover {
            &>span {
                color: @white;
            }
            &::before {
                width: 100%;
            }
        }
        position: relative;
        width: 100%;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        &>span {
            color: @gray;
            z-index: 1;
        }
        &::before {
            z-index: 0;
            position: absolute;
            left: 0;
            top: 0;
            content: '';
            height: 100%;
            width: 0;
            background: @gray;
            transition: all 200ms ease-in-out;
        }
    }
}
</style>